import request from '@/utils/request'

// 增加公告
export const addNoticeApi = (title:string,content:string) => request.post('notice',{title,content})

// 修改公告
export const updateNoticeApi = (id:number,title:string,content:string) => request.post(`notice/${id}`,{title,content})

// 公告列表
export const noticeListApi = (page:number) => request.get(`notice/${page}`)

// 删除公告
export const removeNoticeApi = (id:number) => request.post(`notice/${id}/delete`)